import { ref } from 'vue'

function useCount() {
  const count = ref(0)

  const min = () => {
    count.value--
  }

  const add = () => {
    count.value++
  }

  return {
    count,
    min,
    add
  }
}

export { useCount }
